<html>
    <head>
        <title><?php echo $store_name;?></title>
        <meta charset="UTF-8">
        <meta name="description" content="<?php echo $action['action_name'];?>">
        <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1">
        <link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
        <script type='text/javascript' src='/public/js/jquery-1.11.2.min.js'></script>
        <script type="text/javascript" src='/public/js/jquery.validate.js'></script>
        <script>
            var _hmt = _hmt || [];
            (function () {
                var hm = document.createElement("script");
                hm.src = "//hm.baidu.com/hm.js?8d43b5b5d798921b66d689f7a792e6e2";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
        </script>
        <script type="text/javascript">
            document.domain = '<?php echo _DOMAIN_ALL_?>';
        </script>
    </head>
    <body>
<div class="container">
    <div class='_main_'>
<link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="/public/css/main.css" rel="stylesheet">
        <script type='text/javascript' src='/public/js/jquery-1.11.2.min.js'></script>
        <script type="text/javascript" src='/public/js/jquery.validate.js'></script>
<div style='height:1.5rem'></div>
<form id='form' >
    <?php $i =0; foreach($info_data as $k=>$v){ if(($v['id']=='' && $v['order_number']==$order_number) || (!isset($v['type']) ||$v['type']== $type) ){ continue; }  ?>
    <div class='row'>
      
        <div class='thumbnail' style="float:left;">
            <div style="height:15rem;width:15rem;overflow: hidden;">
                <img class='_img' src="<?php echo 'http://'.IMAGE_DOMAIN_.$v['item']['images'][0]['image'];?>" style='width:100%;height:100%'/>
            </div>
        </div>
        <div>
            <div ><?php echo $v['item']['name'];?></div>
            <div class='_line'></div>
            <div ><i><font style='color:red;font-size:1.7rem'>￥<?php echo $v['item']['price']/100;?></font></i>
                    <span  style='float:right' >数量：<i><font style='color:red;font-size:1.7rem;float:right'><?php if($v['item']['items'][0]['number']){ echo $v['number']/($v['item']['items'][0]['number']); }else{ echo $v['number']; }?></font></i></span>
            </div>
        </div>
    </div>
    <?php $i++; $order_number = $v['order_number']; $type=$v['type']; }?>
</form>
<div class='box navbar-fixed-bottom' style="background-color:#EEEEEE;">
    <input type='hidden' value='<?php  echo $data['store_id'] ?>' id='store_id' >
    <input type='hidden' value='<?php  echo $data['price'] ?>' id='price' >
    <input type='hidden' value='<?php  echo $data['order_number'] ?>' id='order_number' >
    <input type='hidden' value='<?php  echo $data['id'] ?>' id='order_id' >
    <button class="btn btn-primary btn-lg"  type="button" id='pay' style="width:30%;background-color:#FF79BC;border-color:white;float:right;">去结算(<span id='num' ><?php echo $i; ?></span>)</button>
    <span style='padding:1rem;float:right;'>共计：<span style='text-align:right'>￥<span id='money' style='color:red;font-size:1.7rem;'><?php echo $data['price']/100;?></span><br> (不含优惠劵)</span></span>&nbsp;&nbsp;&nbsp;
</div>


<div class='_line'></div>
<div class='_line'></div>


</body></html>
<script type="text/javascript">
    $(document).ready(function(){
        $('#pay').click(function(){
            store_id = $('#store_id').val();
            price = $('#price').val();
            order_number = $('#order_number').val();
            order_id = $('#order_id').val();
    window.location.href = "<?php echo shop_buildUrl('/user/shop/pay?store_id="+store_id+"&price="+price+"&order_number="+order_number+"&order_id="+order_id+"') ?>";
        });
    })

</script>
